package com.zmzncs.lmtc.module.system.service.impl;

import com.zmzncs.lmtc.module.system.pojo.department.Department;
import com.zmzncs.lmtc.module.system.dao.DepartmentDao;
import com.zmzncs.lmtc.module.system.pojo.department.DepartmentDTO;
import com.zmzncs.lmtc.module.system.service.DepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 任建波
 * @since 2020-10-12
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentDao, Department> implements DepartmentService {

    @Autowired
    DepartmentDao departmentDao;

    /**
     * 查询部门列表
     */
    @Override
    public List<DepartmentDTO> getDepartmentList() {
        List<DepartmentDTO> departmentList = departmentDao.getDepartmentList();
        return departmentList;
    }

}
